package com.zmj.sy.mom.srv.aps.config;

import com.zmj.sy.mom.srv.aps.utils.Comment;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Getter
@Setter
@Configuration
@ConfigurationProperties("project")
@RefreshScope
public class ProjectConfig {

    @Comment("当前工厂ID")
    private Integer currentFactoryId;

    @Comment("当前工厂Code")
    private String factoryCode;

    @Comment("每天的工时")
    private Integer daySecond;

    @Comment("排除的工序")
    private List<String> ignorePhaseCodeList;

    @Comment("切割工序")
    private List<String> cuttingProcess;

    @Comment("是否是分包类型工厂")
    private boolean packageType;

    @Comment("是否是分包类型工厂")
    private boolean pudaOpen;

    @Comment("文件下载前缀")
    private String urlPre;

    @Comment("添加在制品")
    private boolean addPartFlag;

}
